﻿<Window x:Class="TDGenerator.SelectionWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="Select Correct Entry" Height="300" Width="600">
    <Window.Resources>
        <DataTemplate x:Key="ItemTemplate">
            <StackPanel Orientation="Horizontal">
                <Image Width="50" Height="100" Stretch="Fill" Source="{Binding Cover}"/>
                <TextBlock Text="{Binding title}" />
            </StackPanel>
        </DataTemplate>
    </Window.Resources>
    <Grid x:Name="grid">
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="*"/>
        </Grid.RowDefinitions>
        <StackPanel Orientation="Horizontal" Grid.Row="0">
            <TextBlock Text="Select the correct item and click OK  " VerticalAlignment="Center"/>
            <Button Name="btnOk" Content="OK" Width="50" Click="btnOk_Click"></Button>
        </StackPanel>
        <ListView Name="lvPossibles" ItemTemplate="{StaticResource ItemTemplate}" Grid.Row="1" />
    </Grid>
</Window>
